package com.cxyd.service;

import com.cxyd.modules.api.dto.RcsResultHK;
import com.cxyd.modules.job.task.agvTask.HKTask;
import com.cxyd.modules.job.task.wmsTask.AnalyzeTask;
import com.cxyd.modules.wcs.dto.PostTcpDTO;
import com.cxyd.modules.wcs.service.AgvStateService;
import com.cxyd.modules.wcs.service.PostTcpService;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import javax.annotation.Resource;

@RunWith(SpringRunner.class)
@SpringBootTest
public class ReceiveTaskTestService {
    @Resource
    private AnalyzeTask analyzeTask;
    @Resource
    private HKTask hkTask;
    @Resource
    private PostTcpService postTcpService;
    @Resource
    private AgvStateService agvStateService;

    @Test
    public void scanAgvTrkTest() {
//        analyzeTask.scanTask();
        hkTask.scanTask();
    }

    @Test
    public void postAgvTrkTest() {
//        hkTask.scanTask();
//        hkTask.postTask();
        hkTask.getPermission();
    }
}
